// @ts-ignore
/* eslint-disable */

/**
 * 该文件为 @umijs/openapi 插件自动生成，请勿随意修改。如需修改请通过配置 openapi.config.ts 进行定制化。
 * */

import { request, type RequestOptions } from '@/utils/request';

/** 此处后端没有提供注释 GET /bussiness/varTest/addOperateLog */
export async function varTestAddOperateLog(options?: RequestOptions) {
  return request<string>('/bussiness/varTest/addOperateLog', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /bussiness/varTest/getHttpData */
export async function varTestGetHttpData(options?: RequestOptions) {
  return request<any>('/bussiness/varTest/getHttpData', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /bussiness/varTest/postHttpData */
export async function varTestPostHttpData(options?: RequestOptions) {
  return request<any>('/bussiness/varTest/postHttpData', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 测试Redis GET /bussiness/varTest/testRedis */
export async function varTestTestRedis(options?: RequestOptions) {
  return request<Record<string, any>>('/bussiness/varTest/testRedis', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 测试sse GET /bussiness/varTest/testsse */
export async function varTestTestsse(options?: RequestOptions) {
  return request<any>('/bussiness/varTest/testsse', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 添加数据 POST /bussiness/varTest/varAdd */
export async function varTestVarAdd(options?: RequestOptions) {
  return request<Record<string, any>[]>('/bussiness/varTest/varAdd', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 查询数据 POST /bussiness/varTest/varList */
export async function varTestVarList(
  body: API.VarTestQueryDto,
  options?: RequestOptions
) {
  return request<Record<string, any>>('/bussiness/varTest/varList', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
